package com.daigoudao.web.model;

import java.util.Date;

import com.daigoudao.util.Constants;
import com.daigoudao.util.NumberUtil;

/**
 * 代购邀约信息
 * 
 * @author zheng
 * 
 */
public class InviteModel extends BasePageModel {

	private static final long serialVersionUID = 1386512891966462388L;

	private int inviteId;

	/**
	 * 代购信息ID
	 */
	private int canId;
	/**
	 * 求购信息ID
	 */
	private int wantId;

	/**
	 * 搭车求购信息ID
	 */
	private int simpleId;

	/**
	 * 发起邀约的经纪人ID
	 */
	private int canUserId;

	private String canUserName;

	/**
	 * 求购用户id
	 */
	private int wantUserId;

	private String wantUserName;

	/**
	 * 价格
	 */
	private double price;

	private double servicefee;

	/**
	 * 商品名称
	 */
	private String goodsname;

	/**
	 * 其他信息
	 */
	private String extendsInfo;

	/**
	 * 选择状态 ，即求购者选择了该条作为交易对象 0 初始状态 1 选择 2 拒绝 默认为0
	 */
	private int selectMode = -1;

	/**
	 * 发起时间
	 */
	private Date ts;

	public double getServicefee() {
		return NumberUtil.getBigDecimal(servicefee, Constants.SCALE)
				.doubleValue();
	}

	public void setServicefee(float servicefee) {
		this.servicefee = servicefee;
	}

	public String getGoodsname() {
		return goodsname;
	}

	public void setGoodsname(String goodsname) {
		this.goodsname = goodsname;
	}

	public int getInviteId() {
		return inviteId;
	}

	public void setInviteId(int inviteId) {
		this.inviteId = inviteId;
	}

	public int getCanUserId() {
		return canUserId;
	}

	public void setCanUserId(int canUserId) {
		this.canUserId = canUserId;
	}

	public int getWantUserId() {
		return wantUserId;
	}

	public void setWantUserId(int wantUserId) {
		this.wantUserId = wantUserId;
	}

	public double getPrice() {
		return NumberUtil.getBigDecimal(price, Constants.SCALE).doubleValue();
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getExtendsInfo() {
		return extendsInfo;
	}

	public void setExtendsInfo(String extendsInfo) {
		this.extendsInfo = extendsInfo;
	}

	public int getSelectMode() {
		return selectMode;
	}

	public void setSelectMode(int selectMode) {
		this.selectMode = selectMode;
	}

	public Date getTs() {
		return ts;
	}

	public void setTs(Date ts) {
		this.ts = ts;
	}

	public int getSimpleId() {
		return simpleId;
	}

	public void setSimpleId(int simpleId) {
		this.simpleId = simpleId;
	}

	public int getWantId() {
		return wantId;
	}

	public void setWantId(int wantId) {
		this.wantId = wantId;
	}

	public int getCanId() {
		return canId;
	}

	public void setCanId(int canId) {
		this.canId = canId;
	}

	public String getCanUserName() {
		return canUserName;
	}

	public void setCanUserName(String canUserName) {
		this.canUserName = canUserName;
	}

	public String getWantUserName() {
		return wantUserName;
	}

	public void setWantUserName(String wantUserName) {
		this.wantUserName = wantUserName;
	}
}
